#!/bin/bash
CRON=arq
SINCSERVER=192.168.0.1

COUNT=$(expr $(find $CRON* | wc -l) - 1)
echo $COUNT

if [ $COUNT == '0' ]; then 
	echo ok; 
	mv $CRON $CRON$COUNT
	cp $CRON$COUNT $CRON
else 
	echo nok; 
	mv $CRON $CRON$COUNT
	cp $CRON'0' $CRON
fi


echo '#m h dom mon dow user  command' >> $CRON
echo ' 0 10 *   *   *  root  ntpdate '$SINCSERVER >> $CRON
